Skip to content

Conversation

jborean93
Copy link
Contributor

Updates the examples used to create a HTTP or HTTPS WinRM listener to be compatible with both Windows PowerShell 5.1 and PowerShell 7.x. The New-WSManInstance only worked for WinPS and not for PS 7.x.

Fixes: #2709 (comment)

Updates the examples used to create a HTTP or HTTPS WinRM listener to be
compatible with both Windows PowerShell 5.1 and PowerShell 7.x. The
`New-WSManInstance` only worked for WinPS and not for PS 7.x.
@oraNod oraNod added the backport-2.20 Automatically create a backport for the stable-2.20 branch label Oct 7, 2025
@oraNod
Copy link
Contributor

oraNod commented Oct 7, 2025

Should we backport these changes to 2.19 and earlier or just 2.20?

@jborean93
Copy link
Contributor Author

I think if it cleanly backports to 2.19 it’s probably best to do so.

@oraNod oraNod added the backport-2.19 Automatically create a backport for the stable-2.19 branch label Oct 7, 2025
Copy link
Contributor

@oraNod oraNod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jborean93

@oraNod oraNod merged commit 3ecd3e5 into ansible:devel Oct 7, 2025
12 checks passed
Copy link

patchback bot commented Oct 7, 2025

Backport to stable-2.19: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-2.19/3ecd3e505c20ae5cbf35b508fd4355a3868b743e/pr-3101

Backported as #3106

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Oct 7, 2025
Updates the examples used to create a HTTP or HTTPS WinRM listener to be
compatible with both Windows PowerShell 5.1 and PowerShell 7.x. The
`New-WSManInstance` only worked for WinPS and not for PS 7.x.

(cherry picked from commit 3ecd3e5)
Copy link

patchback bot commented Oct 7, 2025

Backport to stable-2.20: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-2.20/3ecd3e505c20ae5cbf35b508fd4355a3868b743e/pr-3101

Backported as #3107

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Oct 7, 2025
Updates the examples used to create a HTTP or HTTPS WinRM listener to be
compatible with both Windows PowerShell 5.1 and PowerShell 7.x. The
`New-WSManInstance` only worked for WinPS and not for PS 7.x.

(cherry picked from commit 3ecd3e5)
oraNod pushed a commit that referenced this pull request Oct 7, 2025
Updates the examples used to create a HTTP or HTTPS WinRM listener to be
compatible with both Windows PowerShell 5.1 and PowerShell 7.x. The
`New-WSManInstance` only worked for WinPS and not for PS 7.x.

(cherry picked from commit 3ecd3e5)

Co-authored-by: Jordan Borean <[email protected]>
oraNod pushed a commit that referenced this pull request Oct 7, 2025
Updates the examples used to create a HTTP or HTTPS WinRM listener to be
compatible with both Windows PowerShell 5.1 and PowerShell 7.x. The
`New-WSManInstance` only worked for WinPS and not for PS 7.x.

(cherry picked from commit 3ecd3e5)

Co-authored-by: Jordan Borean <[email protected]>
@jborean93 jborean93 deleted the winrm-pwsh-7 branch October 7, 2025 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-2.19 Automatically create a backport for the stable-2.19 branch backport-2.20 Automatically create a backport for the stable-2.20 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PowerShell snippet does not work in PowerShell Core on Windows 10
3 participants